import { NodeResizer } from '@xyflow/react';
import { PdfNodeFunc, PdfNodeProps } from '../../../components';
export const PdfText: PdfNodeFunc = ({ data, selected }: PdfNodeProps) => {
    const style = data.style;
    return (
        <>
            <NodeResizer
                color="#1890ff"
                isVisible={selected}
            />
            <div style={{ ...style }}>{data.hidden ? '' : data?.label}{data?.value}</div >
        </>
    );
};
PdfText.displayName = 'Text';
PdfText.defaultProps = { width: 100, height: 30 };